package mest.dao.Modeling;

import mest.entity.apart_file;
import mest.entity.car_file;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description
 * @auther Machenike
 * @create 2019-11-15 23:08
 */
public interface IcarFileDao {
    //    1.新增功能
    int insertCarFile(@Param("car_file")car_file ct ,@Param("theirDb")String theirDb) throws  Exception;

    //   2.基本查询-数量
    int selectCount(String theirDb);

    //   3.基本查询-分页
    List<car_file> findCarFilePage(@Param("index") int index, @Param("pageSize") int pageSize ,@Param("theirDb")String theirDb);

    //1.删除方法
    int delModel(@Param("id")Integer id,@Param("theirDb")String theirDb);
    //   2.基本查询-分页-模糊查询-过滤删除订单
    List<car_file> queryAll(@Param("index") Integer index,
                              @Param("pageSize") Integer pageSize, @Param("record") String record ,@Param("theirDb")String theirDb);
    //3.查询总数
    int findCount(@Param("record") String record ,@Param("theirDb")String theirDb);
    //4.动态更新某个值
    int updateByPrimaryKeySelective(@Param("car_file")car_file record ,@Param("theirDb")String theirDb);



}
